package com.whcoding.more.datasource.mybatis.controller;

import com.whcoding.more.datasource.mybatis.service.OrmDeptService;
import com.whcoding.more.datasource.mybatis.vo.OrmDeptVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: spring-boot-learning
 * @description:
 * @author: whcoding
 * @create: 2022-08-10 16:02
 **/
@RestController
@RequestMapping("/ormDept")
public class OrmDeptController {

	@Autowired
	OrmDeptService ormDeptService;

	/**
	 * 保存数据
	 */
	@PostMapping("/save")
	public void save() {
		OrmDeptVO ormDeptVO = new OrmDeptVO();
		ormDeptService.addDept(ormDeptVO);
	}
}
